/*
 * @lc app=leetcode.cn id=709 lang=cpp
 *
 * [709] 转换成小写字母
 */

#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <string>
using namespace std;

// @lc code=start
class Solution {
public:
    string toLowerCase(string s) {
        int length = 0;     // 记录字符串长度

        length = s.length();

        for (int i = 0; i < length; i++) {
            if ('A' <= s[i] && s[i] <= 'Z') {
                s[i] = s[i] + 32;
            }
        }
        
        return s;
    }
};
// @lc code=end

